package com.icat.house.web.controller;

import com.jfinal.core.Controller;

public class BaseController extends Controller {

	public void render(String view) {
		setGlobalAttibutes();
		super.render(view);
	}

	public String getCode() {
		return this.getPara("code");
	}

	public String getHeader(String user) {
		return this.getRequest().getHeader(user);
	}

	public String getContextPath() {
		return this.getRequest().getContextPath();
	}

	/** 设置全局属性 */
	public void setGlobalAttibutes() {
	}
}